<template>
  <el-dialog
    title="分配权限"
    :visible="showDialog"
    @close="closeFn"
  >
    <el-tree
      :data="permList"
    />
    <template v-slot:footer>
      <el-row type="flex" justify="center">
        <el-button type="primary" size="small">确定</el-button>
        <el-button size="small" @click="closeFn">取消</el-button>
      </el-row>
    </template>
  </el-dialog>
</template>
<script>
export default {
  props: {
    showDialog: {
      type: Boolean,
      default: false
    }
  },
  data() {
    return {
      permList: []
    }
  },

  methods: {

    // 关闭弹框
    closeFn() {
      this.$emit('update:showDialog', false)
    }
  }
}
</script>
<style>

</style>
